package com.ciquan.server.service.impl;

import com.ciquan.server.bean.KeyValue;
import com.ciquan.server.dao.KeyValueMapper;
import com.ciquan.server.service.KeyValueService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by bjliwei2014 on 2015/6/5.
 */
@Service
public class KeyValueServiceImpl implements KeyValueService {

    @Resource
    private KeyValueMapper keyValueMapper;

    @Override
    public KeyValue selectOne(KeyValue keyValue) {
        return keyValueMapper.selectOne(keyValue);
    }

    @Override
    public int update(KeyValue keyValue) {
        return keyValueMapper.update(keyValue);
    }
}
